/**
 * Created by Administrator on 2017/10/17.
 */
var mongoose = require("mongoose");
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    title:String,
    brand:String,
    quantity:String,
    _price:String,
    cateId:String,
    comNum:Number,
    data:{type:Date,default:Date.now},
    thumb:{}
});
schema.plugin(mongoosePaginate);

var goods = mongoose.model('Goods',schema,"goods");

module.exports= goods;